//
//  NewsListManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/8/1.
//

#import "NewsListManager.h"

@implementation NewsListManager

-(NSString *)methodName{
    return @"/system/user/news/page";
}


-(JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypeGET;
}


-(NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"page"] = self.page;
    dict[@"limit"] = @"10";
    return dict;
}

@end
